0x01 Cyclic record file with 5 records with size 16 bytes each
0x03 Value file
0x04 Standard data file with size 256 bytes
0x0f Transaction MAC file with size 256 bytes
0x1f Standard data file with size 32 bytes. Used for FCI.
User can’t create/delete files (except Transaction MAC file).
ISO file IDs, the other files and application parameters can be changed via SetConfiguration command only.
The card has two secure channels: EV2 and LRP. By default, EV2 is on. LRP can be switched on by issuing SetConfiguration command and after that, it can’t be switched off.
Application on the card can’t be selected by DESFire native select. Needs to issue ISO select command. All the commands that can work in LRP channel have –appisoid option
Transaction MAC file - the only file that can be created and deleted. By default, all transaction operations (operations with Value and Record file) need to issue CommitReaderID command.
So (to fast check- it is needed to delete this file) it has default file id - 0x0f.
FCI sends from card to reader after selecting the application (df01 by default)
If it needs to have more space for FCI - just change the ID of one of the bigger files to 0x1f (and the current ID to something else) via SetConfiguration command.
[usb] pm3 --> hf mfdes bruteaid[=]Enumerating through all AIDs manually, this will take a while![+] Got new APPID 000000[|]Progress: 0 %, current AID: 027E3E[!] Communicating with Proxmark3 device failed[usb] pm3 --> hf mfdes bruteaid --start 3a7e02[=]Bruteforce from 027e3a to ffffff[=]Enumerating through all AIDs manually, this will take a while![|]Progress: 0 %, current AID: 04AF97
Show Applications:
[usb] pm3 --> hf mfdes lsapp --no-auth[+] ------------------------------------ PICC level -------------------------------------[+] Applications count: 2 free memory 2240 bytes[+] PICC level auth commands:[+] Auth.............. YES[+] Auth ISO.......... YES[+] Auth AES.......... NO[+] Auth Ev2.......... NO[+] Auth ISO Native... YES[+] Auth LRP.......... NO[+] PICC level rights:[+][1...] CMK Configuration changeable : YES[+][.0..] CMK required for create/delete : YES[+][..1.] Directory list access with CMK : NO[+][...1] CMK is changeable : YES[+][+] Key: 2TDEA[+] key count: 1[+] PICC key 0 version: 3 (0x03)
[+] --------------------------------- Applications list ---------------------------------[+] Application number: 0xFFFFFF[+] ISO id.... 0x0000[+] DF name... ( 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 )
[+] AID mapped to MIFARE Classic AID (MAD): FFFF[+] MAD AID Cluster 0xFF : miscellaneous applications[=]MAD AID Function 0xFFFF : Miscellaneous applications [Reserved For future Use][+] Auth commands:[+] Auth.............. YES[+] Auth ISO.......... YES[+] Auth AES.......... NO[+] Auth Ev2.......... NO[+] Auth ISO Native... YES[+] Auth LRP.......... NO[+][+] Application level rights:[+] -- Authentication with the specified key (0x01) is necessary to change any key.[+] A change key and a PICC master key (CMK) can only be changed after authentication with the master key.[+] For keys other then the master or change key, an authentication with the same key is needed.[+][1...] AMK Configuration changeable : YES[+][.0..] AMK required for create/delete : YES[+][..1.] Directory list access with AMK : NO[+][...1] AMK is changeable : YES[+][+] Key: 2TDEA[+] key count: 4[+][+] Key versions [0..3]: 03, 03, 03, 03[+] Application number: 0xF21030[+] ISO id.... 0x0000[+] DF name... ( 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 )
[+] AID mapped to MIFARE Classic AID (MAD): 2103[+] MAD AID Cluster 0x21 : reserved[=]MAD AID Function 0x2103 : Multi-Modal Transit (Vix/ERG) [ERG Transit Systems][+] Auth commands:[+] Auth.............. YES[+] Auth ISO.......... YES[+] Auth AES.......... NO[+] Auth Ev2.......... NO[+] Auth ISO Native... YES[+] Auth LRP.......... NO[+][+] Application level rights:[+] -- Authentication with the specified key (0x01) is necessary to change any key.[+] A change key and a PICC master key (CMK) can only be changed after authentication with the master key.[+] For keys other then the master or change key, an authentication with the same key is needed.[+][1...] AMK Configuration changeable : YES[+][.0..] AMK required for create/delete : YES[+][..1.] Directory list access with AMK : NO[+][...1] AMK is changeable : YES[+][+] Key: 2TDEA[+] key count: 5[+][+] Key versions [0..4]: 02, 02, 02, 02, 02